home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / ProgramF / CRYSTAL / CRW9 / DEV / INCLUDE / Uxfsepv.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-01-16  |  2.3 KB  |  96 lines

  1.  
  2. //<HEADER_BEGIN>
  3. //================================================
  4. //File name: uxfsepv.h
  5. //Date : January, 15 2002  12:15
  6. //Copyright (c) 2002 - Crystal Decisions Corp.
  7. //================================================
  8. //<HEADER_END>
  9.  
  10. #if !defined (UXFSEPV_H)
  11. #define UXFSEPV_H
  12.  
  13. // Set 1-byte structure alignment
  14. #if !defined (MAINWIN)
  15. #if defined (__BORLANDC__)      // Borland C/C++
  16.   #pragma option -a-
  17. #elif defined (_MSC_VER)        // Microsoft Visual C++
  18.   #if _MSC_VER >= 900           // MSVC 2.x and later
  19.     #pragma pack (push)
  20.   #endif
  21.   #pragma pack (1)
  22. #endif
  23. #endif
  24.  
  25. #if defined (__cplusplus)
  26. extern "C"
  27. {
  28. #endif
  29.  
  30. #define UXFCommaSeparatedType   0
  31. #define UXFTabSeparatedType     1
  32. #define UXFCharSeparatedType    2
  33. #define UXFSeparatedValuesType  3
  34.  
  35.  
  36. typedef struct UXFCharCommaTabSeparatedOptionsA
  37. {
  38.     WORD structSize;
  39.  
  40.     BOOL useReportNumberFormat;
  41.     BOOL useReportDateFormat;
  42.     char stringDelimiter;
  43.     char FAR *fieldDelimiter;
  44.  
  45.     WORD  nEncodedBytes;
  46. }
  47.     UXFCharCommaTabSeparatedOptionsA;
  48. #define UXFCharCommaTabSeparatedOptionsASize (sizeof (UXFCharCommaTabSeparatedOptionsA))
  49.  
  50. typedef struct UXFCharCommaTabSeparatedOptionsW
  51. {
  52.     WORD structSize;
  53.  
  54.     BOOL useReportNumberFormat;
  55.     BOOL useReportDateFormat;
  56.     wchar_t stringDelimiter;
  57.     wchar_t FAR *fieldDelimiter;
  58.  
  59.     WORD  nEncodedBytes;
  60. }
  61.     UXFCharCommaTabSeparatedOptionsW;
  62. #define UXFCharCommaTabSeparatedOptionsWSize (sizeof (UXFCharCommaTabSeparatedOptionsW))
  63.  
  64. #if defined (UNICODE)
  65. typedef UXFCharCommaTabSeparatedOptionsW UXFCharCommaTabSeparatedOptions;
  66. #else
  67. typedef UXFCharCommaTabSeparatedOptionsA UXFCharCommaTabSeparatedOptions;
  68. #endif
  69.  
  70. typedef UXFCharCommaTabSeparatedOptions UXFCharSeparatedOptions;
  71. typedef UXFCharCommaTabSeparatedOptions UXFCommaTabSeparatedOptions;
  72.  
  73. #define UXFCharCommaTabSeparatedOptionsSize (sizeof (UXFCharCommaTabSeparatedOptions))
  74.  
  75. #define UXFCharSeparatedOptionsSize UXFCharCommaTabSeparatedOptionsSize
  76. #define UXFCommaTabSeparatedOptionsSize UXFCharCommaTabSeparatedOptionsSize 
  77.  
  78. #if defined (__cplusplus)
  79. }
  80. #endif
  81.  
  82. // Reset structure alignment
  83. #if !defined (MAINWIN)
  84. #if defined (__BORLANDC__)
  85.   #pragma option -a.
  86. #elif defined (_MSC_VER)
  87.   #if _MSC_VER >= 900
  88.     #pragma pack (pop)
  89.   #else
  90.     #pragma pack ()
  91.   #endif
  92. #endif
  93. #endif
  94.  
  95. #endif 
  96.